package com.newgd.blockchain.demo.service;

import com.newgd.blockchain.demo.model.Trades;
import com.newgd.blockchain.demo.repository.TradesRepository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.awt.print.Pageable;
import java.util.List;

/**
 * Created by Niki on 2018/4/14 9:43
 */
@Service
public class TradesServiceImpl implements ITradesService {
//    @Resource
    TradesRepository tradesRepository;

    @Override
    public void save(Trades trades) {
//        tradesRepository.save(trades);
    }

    @Override
    public List<Trades> findTradesByDate(long begin, long end) {
//        return tradesRepository.findTradesByDate(begin, end);
        return null;
    }

    @Override
    public List<Trades> findTradesByDate(long begin, long end, Pageable pageable) {
        // TODO: 2018/4/14  未时间分页查询，看数据量情况
        return null;
    }
}
